<?php
namespace Operationtest\Model;

class Salehead
{
    public $idSaleHead;
    public $idStore;
    public $idClient;
    public $orderDate;
    public $orderTime;
    public $originalSaleHeadNumber;
    public $type;
    public $canceled;
    public $idFDC;
    public $discount;
    public $isWeb;
    public $nbline;
    public $totttc;
    public $totht;
    public $Category;
    public $cardNumber;
    public $workerMeal;
    public $workerMealCode;
    
    public function exchangeArray($data)
    {
        $this->idSaleHead = (isset($data['idSaleHead'])) ? $data['idSaleHead'] : null;
        $this->idStore = (isset($data['idStore'])) ? $data['idStore'] : null;
        $this->idClient = (isset($data['idClient'])) ? $data['idClient'] : null;
        $this->orderDate = (isset($data['orderDate'])) ? $data['orderDate'] : null;
        $this->orderTime = (isset($data['orderTime'])) ? $data['orderTime'] : null;
        $this->originalSaleHeadNumber = (isset($data['originalSaleHeadNumber'])) ? $data['originalSaleHeadNumber'] : null;
        $this->type = (isset($data['type'])) ? $data['type'] : null;
        $this->canceled = (isset($data['canceled'])) ? $data['canceled'] : null;
        $this->idFDC = (isset($data['idFDC'])) ? $data['idFDC'] : null;
        $this->discount = (isset($data['discount'])) ? $data['discount'] : null;
        $this->isWeb = (isset($data['isWeb'])) ? $data['isWeb'] : null;
        $this->nbline = (isset($data['nbline'])) ? $data['nbline'] : null;
        $this->totttc = (isset($data['totttc'])) ? $data['totttc'] : null;
        $this->totht = (isset($data['totht'])) ? $data['totht'] : null;
        $this->Category = (isset($data['Category'])) ? $data['Category'] : null;
        $this->cardNumber = (isset($data['cardNumber'])) ? $data['cardNumber'] : null;
        $this->workerMeal = (isset($data['workerMeal'])) ? $data['workerMeal'] : null;
        $this->workerMealCode = (isset($data['workerMealCode'])) ? $data['workerMealCode'] : null;
    }
}